package com.wowocai.btchina.utils;

import org.springframework.http.HttpStatus;

/**
 * @author Ji Luo (martin.luo@amoby.com)
 */
public abstract class ApiException extends RuntimeException {

  private static final long serialVersionUID = -1359484650372470724L;

  public abstract HttpStatus statusCode();

  protected ApiException(final String message) {
    super(message);
  }

  protected ApiException(final String message, final Throwable cause) {
    super(message, cause);
  }
}
